var ExamQuestion={
GetExam:function(QuestionId,ExamId,IsExam,ViewId)
	{
	this.QuestionId=QuestionId;
	if(ExamId)	this.Set(ExamId,IsExam,ViewId);
	else	LoadAjax.Get(fastCSharp.ThisFunction(this,this.OnGetExam,[QuestionId]),'/include/examQuestion.html',{questionId:QuestionId});
	},
OnGetExam:function(Value,QuestionId)
	{
	if(this.QuestionId==QuestionId)
		{
		fastCSharp.Skins.examQuestion.Show(Value);
		fastCSharp.FloatCenters.examQuestion.Show();
		}
	},
Hide:function()
	{
	fastCSharp.FloatCenters.examQuestion.Hide();
	},
Set:function(ExamId,IsExam,ViewId)
	{
	LoadAjax.Post(fastCSharp.ThisFunction(this,this.OnSet,[fastCSharp.ViewObjects[ViewId],IsExam?-1:1]),IsExam?'enterprise.exam.DeleteQuestion':'enterprise.exam.AppendQuestion',{examId:ExamId,questionId:this.QuestionId});
	},
OnSet:function(Value,View,Count)
	{
	if(Value.__AJAXRETURN__)	(View.IsExam||View.SkinTarget.IsExam).Set(Count>0);
	}
		};